package JiCheng;

public class Person {
    //继承的属性
    public String name;
    public Integer age;
    public String sex;
    public String tel;

    public Person() {
    }

    public Person(String name, Integer age, String sex, String tel) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.tel = tel;
    }

    public void play(String doing){
        System.out.println("学习之余最喜欢做："+doing);
    }

    public void eat(String food){
        System.out.println("最喜欢的食物是："+food);
    }
}
